/**
 * 
 */
package org.lionsteins.eddie.client;


import java.io.Serializable;
import java.sql.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * @author seankang
 *
 */
public class AlertBean implements Serializable {
	/**
	 * 
	 */
	
	private static final long serialVersionUID = 6820122846125439961L;

	  /*
	   * @gwt.typeArgs <java.lang.String>
	   */
  private String location;
  /*
   * @gwt.typeArgs <java.lang.Double>
   */
  private Double lat;
  /*
   * @gwt.typeArgs <java.lang.Double>
   */
  private Double lon;
  
  
  private Date date;
  
  private String sender;
  
  private String incidentType;
  
  private String imagePath;

private Integer id;
  
  public AlertBean() {
	  
  }

public AlertBean(Date date2, Integer id2, String incidentType2, Double lat2,
		Double lon2, String location2, String sender2) {

	this.date = date2;
	this.id = id2;
	this.incidentType = incidentType2;
	this.lat = lat2;
	this.lon = lon2;
	this.location = location2;
	this.sender = sender2;
	
}

public String getLocation() {
	return location;
}

public void setLocation(String location) {
	this.location = location;
}

public Double getLat() {
	return lat;
}

public void setLat(double lat) {
	this.lat = lat;
}

public void setLatString(String latStr){
	try {
		this.lat = Double.parseDouble(latStr);
	} catch (Exception e) {
		
	}
}

public Double getLon() {
	return lon;
}

public void setLonString( String lonStr) {
	try {
	this.lon = Double.parseDouble(lonStr);
	} catch (Exception e) {
		
	}
}

public void setLon(double lon) {
	this.lon = lon;
}



public Integer getId() {
	return id;
}

public void setId(Integer id) {
	this.id = id;
}

public Date getDate() {
	return date;
}

public void setDate(Date date) {
	this.date = date;
}

public String getSender() {
	return sender;
}

public void setSender(String sender) {
	this.sender = sender;
}

public String getIncidentType() {
	return incidentType;
}

public void setIncidentType(String incidentType) {
	this.incidentType = incidentType;
}

public String getImagePath() {
	return imagePath;
}

public void setImagePath(String imagePath) {
	this.imagePath = imagePath;
}

}
